import BaseClass from "@/utils/BaseClass.ts";

interface ConfigsProps {
    [key:string]: any
}

export default class ConfigManager extends BaseClass{
    private _configs_: ConfigsProps;
    constructor(configs: ConfigsProps){
        super([]);
        this._configs_ = configs;
    }
    public getValue(key: string): any {
        return this._configs_[key];
    }

    public setValue(key: string, value: any): void{
        this._configs_[key] = value;
    }

    public getConfigs(): ConfigsProps{
        return this._configs_;
    }
}